import { defineStore } from 'pinia'

export const depreciationOfAssets = defineStore('depreciationOfAssets', {
  state: () => {
    return {
      pageName: '资产折旧',
      tableData: [
        {
          id: 1,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 2,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 3,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 4,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 5,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 6,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 7,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 8,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 9,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 10,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        },
        {
          id: 11,
          assetNumber: 'ZC219323',
          name: '惠普打印机',
          DepreciationYear: '2021-12',
          method: '平均年限法',
          unitPrice: 1500.0,
          lifeTime: 24,
          rate: 50,
          depreciationMonths: 12,
          accumulatedDepreciation: 750.0,
          surplusValue: 750.0
        }
      ]
    }
  }
})
